<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/zhuce_one.css"/>
		<link rel="stylesheet" type="text/css" href="css/zhuce.css"/>
	</head>
	<body>
		<div id="offer">
		<div id="offer_logo">
			<a href="login.html"><p id="offer_enter">亲，请登录</p></a>
			<span id="_span">或</span>
			<a type="submit" href="register.html" id="offer_ente">注册</a>
			
			<div id="offer_msg">
				<div id="menu_one" class="menu">
					<a href="index.html">淘宝首页</a>
				</div>
				<div id="menu_two" class="menu">
					<a href="">我的淘宝<span>&or;</span></a>
				</div>
				<div id="menu_three" class="menu">
					<a href="">购物车<span>&or;</span></a>
				</div>
				<div id="menu_four" class="menu">
					<a href="">收藏夹<span>&or;</span></a>
				</div>
				<div id="menu_five" class="menu">
					<a href="">商品分类</a>
				</div>
				<div id="menu_six" class="menu">
					<a href="">卖家中心<span>&or;</span></a>
				</div>
				<div id="menu_seven" class="menu">
					<a href="">联系客服<span>&or;</span></a>
				</div>
				<div id="menu_eight" class="menu">
					<a href="">网站导航<span>&or;</span></a>
				</div>
				</ul>
			</div>
			</div>
		</div>
		<div id="yitao">
			<img src="img/TB1Pe8YcwMPMeJjy1XcXXXpppXa-2500-600.png"/>
			<div id="login-box-warp">
				<h2>注册</h2>
				<div id="cell-phone">
					<div id="label"></div>
					<input type="text" name="cellphone" id="cellphone" placeholder="请输入你的手机号码 "/>
				</div>
				<div id="username-field">
					<div id="label"></div>
					<input type="text" name="usernama" id="username" placeholder="请输入用户名 "/>
				</div>
				<div id="password-field">
					<div id="label_two"></div>
					<input type="password" name="password" id="password" placeholder=" 请输入密码"/>
				</div>
			
			<button id="BUT" type="submit"  name="register" ><p>注册</p></button>
			<div id="login_bottom">
				<h3 id="login_h3">
					<a href="login.html">已有账号？请登录</a>
				</h3>
			</div>
			</div>
		</div>
    	<!--<a href="#" name="username" class="username">asdfghjkl1</a>
		<a href="javascript:localStorage.clear(); location.reload();" class="logout">退出</a>-->
		<!--<script src="js/myajax.js" charset="utf-8"></script>-->
		<!--<script type="text/javascript">
			if(localStorage.username){
				var oUsername=document.querySelector("#username");
        		var oLogout = document.querySelector('.logout');
				oUsername.innerText=localStorage.username;
				oUsername.style.display = 'inline';
        		oLogout.style.display = 'inline';
			}else{
				var oRegister = document.querySelector('#offer_ente');
        		var oLogin = document.querySelector('.logout');
        		oRegister.style.display = 'inline';
        		oLogin.style.display = 'inline';
			}
		</script>-->
		<script src="js/myajax.js" charset="utf-8"></script>
		
		<script type="text/javascript">
			 var oUsername = document.getElementById('username');
			  var oPassword = document.getElementById('password');
			  var oBtn = document.getElementById('BUT');
			  oBtn.onclick = function(){
			      myajax.post('http://h6.duchengjiu.top/shop/api_user.php',
			    {
			      status: 'register',
			      username: oUsername.value,
			      password: oPassword.value
			    }, function(err, responseText){
			      var json = JSON.parse(responseText);
			      console.log(json);
			    });
			  }
		</script>
	</body>
</html>
